import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '@/components/Login'
import Register from '@/components/Register'
import Home from '@/components/Home'
import Mines from '@/components/Mines'
import Select from '@/components/Select'
import Play from '@/components/Play'
import Custom from '@/components/Custom'
import Statement from '@/components/Statement'

Vue.use(Router)

export default new Router({
    // mode: 'history',
    routes: [
        { path: '/', redirect: '/login' },
        { path: '/login', name: 'login', component: Login },
        { path: '/register', name: 'register', component: Register },
        { path: '/home', name: 'home', component: Home },
        { path: '/mines', name: 'mines', component: Mines },
        { path: '/select', name: 'select', component: Select, props: true },
        { path: '/play/:level', name: 'play', component: Play },
        { path: '/custom', name: 'custom', component: Custom },
        { path: '/statement', name: 'statement', component: Statement }
    ],
})